from ourblockchain.basic import Base


class Content(Base):
    def __init__(self, **entries):
        self.purchase_type = None
        self.url = None
        self.__dict__.update(entries)

    def __eq__(self, other):
        return \
            self.purchase_type == other.purchase_type and \
            self.url == other.url

    def __hash__(self):
        return hash((self.purchase_type, self.url))
